<template>
  <div class="export-column-wrap">
    <div class="export-checked-box">
      <el-checkbox v-model="checked"
                   @change="checkedChange">全选</el-checkbox>
      <span class="remarks">选中的字段显示在列表上(注:拖动字段,可进行排序)</span>
    </div>
    <field-column v-bind="$attrs" />
  </div>
</template>

<script>
import FieldColumn from './FieldColumn.vue'
export default {
  name: 'ExportField',
  components: { FieldColumn },
  data () {
    return {
      checked: true
    }
  },
  methods: {
    checkedChange (value) {
      this.$emit('checked', value)
    }
  }
}
</script>

<style scoped>
.export-checked-box {
  padding: 0px 20px 10px 25px;
  text-align: left;
}
.remarks {
  padding-left: 10px;
  color: var(--prev-border-color-lightgrey);
  font-size: 14px;
  font-weight: 400 !important;
}
</style>